﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Web;

namespace Archives
{
    public class ORG_EmplRoleMap : EntityTypeConfiguration<ORG_EmplRole>
    {
        public ORG_EmplRoleMap()
        {
            // Primary Key
            this.HasKey(t => t.EmplID);
            this.HasKey(t => t.RoleID);
            // Properties
            //                
            this.Property(t => t.EmplID)
                .IsRequired()
                .HasMaxLength(50)
                .HasColumnName("EmplID");
            //                
            this.Property(t => t.RoleID)
                .IsRequired()
                .HasMaxLength(50)
                .HasColumnName("RoleID");
            //                
            this.Property(t => t.CreateTime)
                .IsRequired()
                .HasColumnName("CreateTime");
            // Table & Column Mappings
            this.ToTable("ORG_EmplRole");


        }
    }
}